package com.lys.emsystem.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.lys.emsystem.entity.School;
import com.lys.emsystem.vo.SchoolVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


@Mapper
public interface SchoolMapper extends BaseMapper<School> {

    IPage<School> selectByNameOrNo(IPage<School> page,@Param("schoolVo") SchoolVo schoolVo);

    //    批量删除
    int deleteSchools(@Param("ids") int[] ids);

    // 查询状态可用的学校信息
    List<School> selectLists();

}
